// ex5_10.cpp
#include <iostream>

int main(void)
{
	using std::cout;
	using std::cin;
	using std::endl;

	int cnt, i, j, k;
	cout << "Enter number of rows: ";
	cin >> cnt;

	for (i = 1; i <= cnt; i++)
	{
		for (j = cnt - i; j >= 1; j--)
		{
			cout << '.';
		}
		for (k = 1; k <= i; k++)
		{
			cout << '*';
		}	
		cout << endl;
	}
}
